home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re ODF R1 RefCounting Exte.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.0 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODF R1 RefCounting Exte
  2. Sent:        5/30/96 5:30 PM
  3. Received:    5/30/96 5:41 PM
  4. From:        Kirk Swenson, kswenson@mail.keypress.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.                       RE>>ODF R1 RefCounting Extensio              5/30/96
  9.  
  10. >Greg Friedman should be answering this question but I thought that 
  11. >refcounted objects in OpenDoc were created with a refcount of 1? When you 
  12. >create an ODShape (subclass of ODRefcounted object) it's refcount is 1. I 
  13. >am just wondering why your refcount is 0. A refcount of zero means the 
  14. >object is gone.
  15.  
  16. I'll try to save Greg the trouble.  After re-reading the description of
  17. ODRefCntObject, I think you're right.  The extension creation function should
  18. be setting the refCount to 1, not FW_CExtensionManager::AcquireExtension(). 
  19. A note to that effect might be useful in the Engineering Note on Extensions.
  20.  
  21. Kirk Swenson
  22. Senior Software Engineer
  23. Key Curriculum Press
  24. kswenson@keypress.com
  25.  
  26.  
  27.